module.exports = {
  apps: [
    {
      name: 'strapi',
      script: 'npm',
      args: 'run start',
      env: {
        NODE_ENV: 'production',
        PORT: 1337,
        ENV_PATH: ".env.production",
      }
    },
  ],

  deploy: {
    production: {
      user: 'year',
      host: '152.136.104.237',
      key: 'E:/Sync/天翼云/My腾讯id_rsa',
      ref: 'origin/master',
      repo: 'git@gitee.com:ywzhaiqi/my-strapi-app.git',
      path: '/home/year/server/www/strapi',
      'post-setup':
        'cnpm install && pm2 start ecosystem.config.js --env production',
      'post-deploy':
        'cnpm install && pm2 reload ecosystem.config.js --env production',
    },
  },
};
